package com.test.service.impl;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class ZhangsanListener implements ApplicationListener<KevinEvent> {
    @Override
    public void onApplicationEvent(final KevinEvent event) {
        System.out.println("张三收到了新的内容：" + event.getSource());
    }
}
